<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml"
      xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>临时费用申请</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-store, must-revalidate">
    <meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT">
    <meta http-equiv="expires" content="-1">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
          name="viewport">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="/dist/img/icon.png" type="image/x-icon">
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="/dist/plugins/bootstrap/css/bootstrap.min.css">
    <!--字体-->
    <link rel="stylesheet" href="/dist/css/font-awesome.min.css">
    <!--图标-->
    <link rel="stylesheet" href="/dist/css/ionicons.min.css">
    <!--插件样式-->
    <link rel="stylesheet" href="/dist/plugins/select2/select2.min.css">
    <!--OA主样式-->
    <link rel="stylesheet" href="/dist/css/OA.min.css?t=39cd89cd">
    <link rel="stylesheet" href="/dist/css/skins/OA-skins.min.css?t=16f1e6f3">

    <style>
        .table > tbody > tr > td {
            height: 48px;
            max-height: 44px;
            overflow: hidden;
        }

        .table > tbody > tr > td span {
            max-height: 44px;
            line-height: 22px;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
        }

        .saveModle {
            width: 500px;
            height: 300px;
            position: fixed;
            top: 50%;
            left: 50%;
            margin-left: -250px;
            margin-top: -150px;
            background: #fff;
            border-radius: 10px;
            z-index: 1978;
            display: none;
            border: 1px solid #cfcfcf;
        }

        .saveModle .top {
            height: 34px;
            line-height: 34px;
            font-size: 14px;
            font-weight: bold;
            color: #333;
            padding-left: 7px;
            border-bottom: 1px solid #cfcfcf;
            background: #fff;
        }

        .saveModle .top .title {
            height: 32px;
            line-height: 32px;
            font-size: 14px;
            font-weight: bold;
            color: #333;
            float: left;
            background: #fff;
        }

        .saveModle .top .btn {
            font-size: 20px;
            width: 34px;
            height: 22px;
            line-height: 12px;
            display: inline-block;
            float: right;
        }

        .saveModle .top .btn:hover {
            color: red;
        }

        .saveModle .saveBtn {
            margin: 0 auto;
            margin-top: 35px;
            display: block;

        }

        /*#tbList tr:nth-child(odd){*/
        /*background-color:#ECFAFD;*/
        /*}*/
    </style>
</head>

<body>

<section class="content" id="app" v-cloak>
    <h4 style="margin-left:260px" class="wyui-progress">大客户经理拜访计划(本周)</h4>
    <div id="div">
        <div style="float: left">
            <div class="box-body no-padding iframeH2" style="overflow: auto;margin-left: 25px;margin-top: 85pxs" id="scrollDiv">
                <dgiv id="progress" class="wyui-progress"></dgiv>
                <table class="table table-bordered text-center table-width">
                    <thead>
                    <tr>
                        <th style="min-width: 230px;height: 30px">公司名称</th>
                        <th style="width: 230px;height: 30px">在职人数(大客户经理)</th>
                        <th style="width: 180px;height: 30px">本周计划数(大客户经理)</th>
                    </tr>
                    </thead>
                    <tbody id="tbList">
                    <tr v-for="(item,i) in list" style="height: 20px">
                        <td @click="Detail(item)" style="color:#169BD5;cursor: pointer;height:10px">{{item.companyName}}</td>
                        <td style="width: 150px;height: 30px">{{item.total}}</td>
                        <td style="width: 150px;height: 30px" v-if="item.count==undefined">{{count}}</td>
                        <td style="width: 150px;height: 30px" v-else>{{item.count}}</td>
                    </tr>

                    <!--</table>-->

                    <!--</template>-->

                    <!-- <a href="javascript:void(0);" v-if="showABtn(item,'edit')"
                        @click="gotoDetail(item.id,'edit',0)">&nbsp;编辑&nbsp;</a>
                     <a href="javascript:void(0);" v-if="showABtn(item,'reEdit')"
                        @click="gotoDetail(item.id,'edit',0)">&nbsp;删除&nbsp;</a>-->
                    </tbody>
                </table>

            </div>
        </div>

    </div>

</section>

</body>
<!--JQ-->
<script src="https://file.ggxqce.com/web/jquery-2.2.3.min.js"></script>
<!--插件JS-->
<script src="https://file.ggxqce.com/web/bootstrap.min.js"></script>
<!--框架已定义 JS-->
<script src="/dist/js/app_iframe.js?t=0b5caf39"></script>
<!--oa自定义  JS-->
<script src="/dist/js/oa.js?t=0c4d95a9"></script>
<script type="text/javascript" src="/dist/plugins/My97DatePicker/WdatePicker.js"></script>
<script src="https://file.ggxqce.com/web/vue.min.js"></script>
<script>
    /*$.wyui.page.dataUrl = server.ip + "/weekPlan/getCompanyList.json";
    //$.wyui.page.queryParams.userId = "201712182043426AAFC88C0888C11BE2";
    //$.wyui.page.queryParams.costSmallName="加油费";
    $.wyui.page.getByPage_callback = function (records) {
        console.log(records);
        app.list = records;
    };
    $.wyui.page.getByPage_scroll_callback = function (list) {
        if (list.length < 30) {
            isLoad = false;
        } else {
            for (var i = 0; i < list.length; i++) {
                app.list.push(list[i]);
            }
            isLoad = true;
        }
    };*/
</script>
<script type="text/javascript">
    var app = new Vue({
        el: '#app',
        data: {
            list:[],
            count:'0'
        },
        methods: {
            Detail: function (item) {
                var that = this;
                url = "/wreport/WeekPlanCompany.html?companyId=" + item.companyId + "";
                top.closeTabByPageId("share-detail");
                top.addTabs({id: "share-detail", title: item.companyName, close: true, url: url});
            }
        },
        mounted: function () {
             var that=this;
            //$.wyui.page.getByPage();
            $.wyui.postMethod('/weekPlan/getCompanyList.json', {userId:getCurrentUser().id,roleName:getCurrentUser().roleName,companyId:getCurrentUser().companyId}, function (r) {
                that.list = r;
            });
        }

    })


</script>

</html>